package com.iotteam.androidbase.moudules.sensor_history.model;

import com.iotteam.androidbase.base.BaseModel;

import java.util.List;

/**
 * Created by lidechen on 6/25/17.
 */

public class HistoryModel extends BaseModel{

    /**
     * code : 0
     * data : [{"terminalid":"861694034305647","ts":"2017-06-25 11:52:28","posx":"39.929478","posy":"116.273850","angles":"1","power":"375"},{"terminalid":"861694034305647","ts":"2017-06-25 12:23:53","posx":"39.929478","posy":"116.273850","angles":"1","power":"375"},{"terminalid":"861694034305647","ts":"2017-06-25 12:24:32","posx":"39.929478","posy":"116.273850","angles":"1","power":"375"},{"terminalid":"861694034305647","ts":"2017-06-25 12:25:42","posx":"39.929478","posy":"116.273850","angles":"1","power":"375"},{"terminalid":"861694034305647","ts":"2017-06-25 12:34:53","posx":"39.929478","posy":"116.273850","angles":"1","power":"375"},{"terminalid":"861694034305647","ts":"2017-06-25 12:44:47","posx":"39.929478","posy":"116.273850","angles":"1","power":"375"}]
     */

    //private String code;
    /**
     * terminalid : 861694034305647
     * ts : 2017-06-25 11:52:28
     * posx : 39.929478
     * posy : 116.273850
     * angles : 1
     * power : 375
     */

    private List<DataBean> data;

//    public String getCode() {
//        return code;
//    }
//
//    public void setCode(String code) {
//        this.code = code;
//    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        private String terminalid;
        private String ts;
        private String posx;
        private String posy;
        private String angles;
        private String power;

        public String getTerminalid() {
            return terminalid;
        }

        public void setTerminalid(String terminalid) {
            this.terminalid = terminalid;
        }

        public String getTs() {
            return ts;
        }

        public void setTs(String ts) {
            this.ts = ts;
        }

        public String getPosx() {
            return posx;
        }

        public void setPosx(String posx) {
            this.posx = posx;
        }

        public String getPosy() {
            return posy;
        }

        public void setPosy(String posy) {
            this.posy = posy;
        }

        public String getAngles() {
            return angles;
        }

        public void setAngles(String angles) {
            this.angles = angles;
        }

        public String getPower() {
            return power;
        }

        public void setPower(String power) {
            this.power = power;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "terminalid='" + terminalid + '\'' +
                    ", ts='" + ts + '\'' +
                    ", posx='" + posx + '\'' +
                    ", posy='" + posy + '\'' +
                    ", angles='" + angles + '\'' +
                    ", power='" + power + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "HistoryModel{" +
                "data=" + data +
                '}';
    }
}
